package znbkTestPaperCtfd.save;

import com.google.gson.Gson;

import java.util.List;

/**
 * Created by Administrator on 2018\3\29 0029.
 */

public class SaveWrongTopicTutoringModel {

    public  static Gson gson;

    /**
     * StuAssess :
     * SubChildIndex : 1
     * StuAnswer : A
     * UploadPath :
     */
    public static SaveWrongTopicTutoringEntity.RecQuesForSaveTreeBean.StuAnswerBean.SubChildListBean getSubChildListBean(
            String StuAssess,
            int SubChildIndex,
            String StuAnswer,
            String UploadPath){

        SaveWrongTopicTutoringEntity.RecQuesForSaveTreeBean.StuAnswerBean.SubChildListBean mSubChildListBean = new SaveWrongTopicTutoringEntity.RecQuesForSaveTreeBean.StuAnswerBean.SubChildListBean();
        mSubChildListBean.setStuAssess(StuAssess);
        mSubChildListBean.setSubChildIndex(SubChildIndex);
        mSubChildListBean.setStuAnswer(StuAnswer);
        mSubChildListBean.setUploadPath(UploadPath);

        gson = new Gson();
        return mSubChildListBean;
    }

    /**
     * ChildIndex : 1
     * SubChildList : [{"StuAssess":"","SubChildIndex":1,"StuAnswer":"A","UploadPath":""}]
     */
    public static SaveWrongTopicTutoringEntity.RecQuesForSaveTreeBean.StuAnswerBean getStuAnswerBean(
            int ChildIndex,
            List<SaveWrongTopicTutoringEntity.RecQuesForSaveTreeBean.StuAnswerBean.SubChildListBean> SubChildList){

        SaveWrongTopicTutoringEntity.RecQuesForSaveTreeBean.StuAnswerBean mStuAnswerBean = new SaveWrongTopicTutoringEntity.RecQuesForSaveTreeBean.StuAnswerBean();
        mStuAnswerBean.setChildIndex(ChildIndex);
        mStuAnswerBean.setSubChildList(SubChildList);

        gson = new Gson();
        return mStuAnswerBean;
    }

    /**
     * PimitiveQuesID : CCAE06057DHE10K00Ys
     * StuID : zxstu77
     * AnswerState : 3
     * StuAnswer : [{"ChildIndex":1,"SubChildList":[{"StuAssess":"","SubChildIndex":1,"StuAnswer":"A","UploadPath":""}]},{"ChildIndex":2,"SubChildList":[{"StuAssess":"","SubChildIndex":1,"StuAnswer":"B","UploadPath":""}]},{"ChildIndex":3,"SubChildList":[{"StuAssess":"","SubChildIndex":1,"StuAnswer":"A","UploadPath":""}]}]
     * QuesID : CCAE14157DHE10s00mh
     * CorrectRate : 0
     * StepFlag : 2
     * ImportantZSDCode : CC04117ANA07YEBAA&CE1916203A002EBAA&CE191620gA00HFAAC&CC04117jFA0XKFAAC&CE191620gA00ZHDAA&CC04117ηυA1COHDAA|CC0401803Aa03CAAF|CE141571πAa1sCAAF|CC04013FnAaHVCAAF|CE161240οAa0eCAAF|CE110801JAa19CAAF
     * AllQuesTotalCount : 5
     * Duration : 16
     * SchoolID : S24-666-2ECC
     * AnswerItemCount : 3
     * TypeID : E
     * TotalItemCount : 3
     * SubjectID : C
     * StuName : 仇国林
     * StageNo : C
     */
    public static SaveWrongTopicTutoringEntity.RecQuesForSaveTreeBean getRecQuesForSaveTreeBean(
            String PimitiveQuesID,
            String StuID,
            int AnswerState,
            List<SaveWrongTopicTutoringEntity.RecQuesForSaveTreeBean.StuAnswerBean> StuAnswerBean,
            String QuesID,
            double CorrectRate,
            int StepFlag,
            String ImportantZSDCode,
            int AllQuesTotalCount,
            int Duration,
            String SchoolID,
            int AnswerItemCount,
            String TypeID,
            int TotalItemCount,
            String SubjectID,
            String StuName,
            String StageNo){

        SaveWrongTopicTutoringEntity.RecQuesForSaveTreeBean mRecQuesForSaveTreeBean= new SaveWrongTopicTutoringEntity.RecQuesForSaveTreeBean();
        mRecQuesForSaveTreeBean.setPimitiveQuesID(PimitiveQuesID);
        mRecQuesForSaveTreeBean.setStuID(StuID);
        mRecQuesForSaveTreeBean.setAnswerState(AnswerState);
        mRecQuesForSaveTreeBean.setStuAnswer(StuAnswerBean);
        mRecQuesForSaveTreeBean.setQuesID(QuesID);
        mRecQuesForSaveTreeBean.setCorrectRate(CorrectRate);
        mRecQuesForSaveTreeBean.setStepFlag(StepFlag);
        mRecQuesForSaveTreeBean.setImportantZSDCode(ImportantZSDCode);
        mRecQuesForSaveTreeBean.setAllQuesTotalCount(AllQuesTotalCount);
        mRecQuesForSaveTreeBean.setDuration(Duration);
        mRecQuesForSaveTreeBean.setSchoolID(SchoolID);
        mRecQuesForSaveTreeBean.setAnswerItemCount(AnswerItemCount);
        mRecQuesForSaveTreeBean.setTypeID(TypeID);
        mRecQuesForSaveTreeBean.setTotalItemCount(TotalItemCount);
        mRecQuesForSaveTreeBean.setSubjectID(SubjectID);
        mRecQuesForSaveTreeBean.setStuName(StuName);
        mRecQuesForSaveTreeBean.setStageNo(StageNo);

        gson = new Gson();
        return mRecQuesForSaveTreeBean;
    }


    public static SaveWrongTopicTutoringEntity getSaveWrongTopicTutoringEntity(List<SaveWrongTopicTutoringEntity.RecQuesForSaveTreeBean> RecQuesForSaveTreeBean){
                SaveWrongTopicTutoringEntity mSaveWrongTopicTutoringEntity = new SaveWrongTopicTutoringEntity();
                mSaveWrongTopicTutoringEntity.setRecQuesForSaveTree(RecQuesForSaveTreeBean);
                gson = new Gson();
                return mSaveWrongTopicTutoringEntity;
    }


}
